package com.lysj.bhp.investment.repository;

import com.lysj.bhp.investment.domain.Reward;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface RewardRepository extends JpaRepository<Reward,Long>,JpaSpecificationExecutor {

    Reward findByUserId(Long userId);

    Reward findByUserIdAndType(Long userId, int type);
}
